<?xml version="1.0" ?>
<map height="20" tileheight="32" tileset="tiles/mountains" tilewidth="64" width="20">
<layer z="0">
<tiles>
    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 1 0 0    0 1 0 0 0 1 0 0 0 0    0 0 0 1 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    
    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 200 4 0 0 0 0    0 0 200 4 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 1 0 0    0 1 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    
    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 200 4 200 4 0 0    200 4 200 4 200 4 0 0 0 0    0 0 200 4 200 4 0 0 0 0    0 0 200 4 200 4 0 0 0 0    0 0 200 4 200 4 0 0 0 0    0 0 200 4 200 4 0 0 0 0    0 0 200 4 0 1 0 0 0 0    0 0 0 1 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 200 1 0 0 0 0    0 0 200 1 200 1 0 0 0 0    0 0 200 1 200 4 0 0 0 0    
    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 200 4 0 0    200 4 0 3 0 3 200 4 0 0    200 4 0 3 0 3 200 4 0 0    200 4 0 3 200 4 200 4 0 0    200 4 200 4 200 1 200 4 0 0    200 4 200 1 200 1 200 4 0 0    200 4 200 1 200 4 0 1 0 0    0 1 200 4 200 4 0 3 0 0    0 3 200 4 200 1 0 3 0 0    0 3 200 1 200 1 0 3 0 0    0 3 200 1 200 1 200 1 0 0    200 1 200 1 0 1 200 1 0 0    200 1 0 1 0 1 200 4 0 0    
    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 -100 1 0 0 0 0    0 3 -100 1 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 200 4 0 0    200 4 0 3 0 1 200 1 0 0    200 1 0 1 0 3 200 1 0 0    200 1 0 3 0 3 200 4 0 0    200 4 0 3 0 3 200 4 0 0    200 4 0 3 200 1 200 1 0 0    200 1 200 1 200 1 200 1 0 0    200 1 200 1 0 1 200 1 0 0    200 1 0 1 0 1 0 1 0 0    0 1 0 1 0 3 0 1 0 0    
    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 -100 1 -100 1 0 0    -100 1 -100 1 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 1 0 0    0 1 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 200 1 0 0    200 1 0 3 0 1 200 1 0 0    200 1 0 1 0 1 0 1 0 0    0 1 0 1 0 3 0 1 0 0    0 1 0 3 0 3 0 3 0 0    
    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 -100 1 0 0 0 0    0 0 -100 1 -100 1 -100 1 0 0    -100 1 -100 1 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 1 0 0    0 1 0 3 0 3 0 1 0 0    0 1 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    
    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 0 0 0 0 0 0    0 0 0 0 -100 1 -100 1 0 0    -100 1 -100 1 0 0 -100 1 0 0    -100 1 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 1 0 3 0 0    0 3 0 1 0 3 0 3 0 0    
    0 0 0 0 -100 1 0 0 0 0    0 0 -100 1 -100 1 0 0 0 0    0 0 -100 1 -100 1 0 0 0 0    0 0 -100 1 -100 1 0 0 0 0    0 0 -100 1 -100 1 0 0 0 0    0 0 -100 1 -100 1 0 0 0 0    0 0 -100 1 -100 1 -100 1 0 0    -100 1 -100 1 0 0 0 0 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 1 0 3 0 0    0 3 0 1 0 1 0 3 0 0    0 3 0 1 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 1 0 0    0 1 0 3 0 3 0 3 0 0    
    0 3 0 3 0 3 -100 1 0 0    -100 1 0 3 0 3 -100 1 0 0    -100 1 0 3 0 3 -100 1 0 0    -100 1 0 3 0 3 -100 1 0 0    -100 1 0 3 0 3 -100 1 0 0    -100 1 0 3 0 3 -100 1 0 0    -100 1 0 3 0 3 -100 1 0 0    -100 1 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 4 0 3 0 0    0 3 0 4 0 4 0 3 0 0    0 3 0 4 0 1 0 1 0 0    0 1 0 1 0 1 0 1 0 0    0 1 0 1 0 1 0 3 0 0    0 3 0 1 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    
    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 1 0 3 0 0    0 3 0 1 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 4 0 4 0 0    0 4 0 4 0 1 0 4 0 0    0 4 0 1 0 1 0 1 0 0    0 1 0 1 0 1 0 1 0 0    0 1 0 1 0 1 0 1 0 0    0 1 0 1 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    
    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 1 0 0    0 1 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 1 0 3 0 0    0 3 0 1 0 1 0 3 0 0    0 3 0 1 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 4 0 0    0 4 0 3 0 3 0 1 0 0    0 1 0 3 0 3 0 1 0 0    0 1 0 3 0 3 0 1 0 0    0 1 0 3 0 3 0 1 0 0    0 1 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    
    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 1 0 0    0 1 0 3 0 4 0 1 0 0    0 1 0 4 0 4 0 3 0 0    0 3 0 4 0 3 0 3 0 0    0 3 0 3 0 4 0 3 0 0    0 3 0 4 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 1 0 3 0 0    0 3 0 1 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    
    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 4 0 3 0 0    0 3 0 4 0 3 0 4 0 0    0 4 0 3 0 3 0 4 0 0    0 4 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 4 0 0    0 4 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 1 0 0    0 1 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 1 0 3 0 0    0 3 0 1 0 1 0 3 0 0    0 3 0 1 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    
    0 3 0 3 0 4 0 3 0 0    0 3 0 4 0 4 0 3 0 0    0 3 0 4 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 4 0 4 0 0    0 4 0 4 0 4 0 3 0 0    0 3 0 4 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 1 0 3 0 0    0 3 0 1 0 1 0 1 0 0    0 1 0 1 0 3 0 1 0 0    0 1 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    
    0 3 0 3 0 3 0 4 0 0    0 4 0 3 0 3 0 4 0 0    0 4 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 4 0 0    0 4 0 3 0 1 0 4 0 0    0 4 0 1 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 1 0 0    0 1 0 3 0 3 0 1 0 0    0 1 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    
    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 1 0 0    0 1 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 4 0 3 0 0    0 3 0 4 0 4 0 3 0 0    0 3 0 4 0 4 0 3 0 0    0 3 0 4 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    
    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 4 0 0    0 4 0 3 0 3 0 4 0 0    0 4 0 3 0 3 0 4 0 0    0 4 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    
    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    
    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    0 3 0 3 0 3 0 3 0 0    
</tiles>

<!-- Read the letter. -->
<if code="import PartyManager;partyManager=PartyManager.getPartyManager()" cond="not partyManager.hasRecord('mountains_read_letter')">
    <area script="locations/mountains/end.py" />
</if>

</layer>

<onload>
import annchienta, PartyManager, BattleManager

partyManager = PartyManager.getPartyManager()
battleManager = BattleManager.getBattleManager()
annchienta.getAudioManager().playMusic( 'music/mountains.ogg')
annchienta.getVideoManager().setClearColor(147,201,233)
battleManager.setRandomBattleEnemies( [] )
battleManager.setRandomBattleBackground( "images/backgrounds/ice.png" )

cacheManager = annchienta.getCacheManager()
cacheManager.getSurface('images/storyline/facilities.png')
</onload>
<onupdate script="locations/mountains/onupdate.py" />
<onprerender>
import annchienta
videoManager = annchienta.getVideoManager()
cacheManager = annchienta.getCacheManager()
surf = cacheManager.getSurface('images/storyline/facilities.png')
videoManager.drawSurface( surf, 0, 0 )
</onprerender>

</map>
